package com.lanou.managerLogin.order.service;

import com.lanou.managerLogin.order.dao.OrderDao;
import com.lanou.managerLogin.order.dao.OrderDaoImpl;
import com.lanou.managerLogin.order.domain.Order;
import com.lanou.managerLogin.order.domain.OrderItem;
import com.lanou.managerLogin.book.domain.Book;

import java.util.List;

public class OrderService {

    private OrderDao od = new OrderDaoImpl();

//    public List<Order> selectAllOrderService(){
//        List<Order> orderAllList = od.selectAllOrder();
//        return orderAllList;
//    }

    public List<Order> selectOrder(){
        List<Order> order = od.selectOrder();
        return order;
    }

    public List<OrderItem> selectOrderItem(String oid){
        List<OrderItem> orderItem = od.selectOrderItem(oid);
        return orderItem;
    }

    public Book oneBook(String bid){
        Book books = od.oneBook(bid);
        return books;
    }
}
